package com.tuangou.tuangouheader.header.service.impl;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.tuangou.tuangouheader.header.dao.RecordUserDao;
import com.tuangou.tuangouheader.header.entity.RecordUserEntity;
import com.tuangou.tuangouheader.header.service.RecordUserService;


@Service("recordUserService")
public class RecordUserServiceImpl extends ServiceImpl<RecordUserDao, RecordUserEntity> implements RecordUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RecordUserEntity> page = this.page(
                new Query<RecordUserEntity>().getPage(params),
                new QueryWrapper<RecordUserEntity>()
        );

        return new PageUtils(page);
    }

}